// import './assets/main.css'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';//pinia持久化插件
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import Vant from 'vant';
import 'vant/lib/index.css';
import App from './App.vue'
import router from './router'
import 'lib-flexible/flexible.js';
import 'element-plus/dist/index.css'
import VueLazyload from 'vue-lazyload';
// import imgLie from '@/components/Lietu.vue'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(VueLazyload, {
  loading: "https://tse4-mm.cn.bing.net/th/id/OIP-C.PRfT_3AEjqzgrGVrdZHQwgHaEo?w=295&h=184&c=7&r=0&o=5&dpr=1.5&pid=1.7", // 占位图
  attempt: 3, // 尝试加载次数
});
// app.component('imgLie', imgLie);
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(Vant)
app.use(router)
app.mount('#app')
